#include <stdio.h>
#include <stdlib.h>

#define MaxVertexNum 100

typedef int WeightType;
typedef int Vertex;

typedef struct AdjVNode* PtrToAdjVNode;
struct AdjNode {
    Vertex AdjV;
    WeightType Weight;
    PtrToAdjVNode Next;
};

typedef struct VNode {
    PtrToAdjVNode FirstEdge;
    /* 存顶点的数据 */
    // DataType Data;
} AdjList[MaxVertexNum];

typedef struct GNode* PtrToGNode;
struct GNode {
    int Nv;
    int Ne;
    AdjList G;
};